﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using BO;
using UIControls;
namespace UI
{
    public partial class UserReportEditForm :Core.ObjectFormBase
    {
        public UserReportEditForm(UserReport pObject)
        {
            InitializeComponent();
            txtSql.Font = GlobalUIVar.gFont;
            CurObj = pObject;
        }

        protected override void InitData()
        {
            var obj = CurObj as UserReport;
            if (obj == null)
                return;
            txtReportName.BindTo(obj, DataBaseObject.Columns.UserReport_ReportName);
            txtSql.BindTo(obj, DataBaseObject.Columns.UserReport_ReportSql);
        }
    }
}
